package com.boodaba.todocarts.infstr;

import java.util.List;

public interface IStoreContext {
	<T> List<T> allOf(Class<T> T);
	<T> List<T> findBySpecification(ISpecification<T> spec);
	<T> T getBySpecification(ISpecification<T> spec);
	
	<T> void bindBySpecification(T entity, ISpecification<T> idSpec);
	
	<T> void delete(T entity);
	<T> void save(T entity);
	
	void commit();
}
